package com.hebxy.ssm.dao;

import java.util.List;
import java.util.Map;

import com.hebxy.ssm.entity.User;

public interface UserMapper {
    public int deleteByPrimaryKey(Integer id); //通过id删除
    public int insert(User record); //插入数据
    public int insertSelective(User record); //选择字段插入数据
    public User selectByPrimaryKey(Integer id); //通过id获取单个对象
    public int updateByPrimaryKeySelective(User record); //选择字段修改数据
    public int updateByPrimaryKey(User record); //修改数据
    
    public User login(Map<String,Object> map);//用户登录
    
    public User selectByCardNumber(String card_number);//通过卡号去查询用户，用于避免卡号重复
    
    public int insertUser(User user); 
    
    public List<User> selectUserList();
    
    public void deleteUserById(Integer id);
    
    public User selectById(Integer id);
    
    public int updateUser(User user);
    
    public void deleteByIds(Map<String,Object> map);
    
}